package zorm

type SRule struct {
	Id       int    `zorm:"primary_key"`
	StrId    string `zorm:"column:strid;size:30;not null"` //模块名称
	Name     string `zorm:"column:name;size:30;not null"`  //模块名称
	Model    string `zorm:"column:model;not null"`         //模块名称
	Domain   string `zorm:"column:domain;not null"`        //domain
	AtCreate bool   `zorm:"column:atcreate;not null"`      //在创建时应用
	AtEdit   bool   `zorm:"column:atedit;not null"`        //在编辑时应用
	AtQuery  bool   `zorm:"column:atquery;not null"`       //在读取时应用
	AtDelete bool   `zorm:"column:atdelete;not null"`      //在删除时应用
	Group    int64  `zorm:"column:group;not null"`         //用户组
}

func (t *SRule) TableName() string {
	return "s_rule"
}
